package com.study.dao;

import com.study.entity.EcommerceOrder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface EcommerceOrderDao extends PagingAndSortingRepository<EcommerceOrder,Long>{

    Page<EcommerceOrder> findAllByUserId(Long userId, Pageable pageable);

}
